package com.snopy.utils;

import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;

/**
 * @author snopy
 * @description:
 * @classname HttpClientUtil
 * @date 2020/10/16 12:42
 * @email 77912204@qq.com
 */
public class HttpClientUtil {

    public static Object postMethod(String url,String param){


        try {
            //准备访问地址
            URL readUrl = new URL(url);
            //打开和url之间的连接
            URLConnection urlConnection = readUrl.openConnection();
            //设置通用的访问属性
            urlConnection.setRequestProperty("accept","*/*");
            urlConnection.setRequestProperty("connection","");
            //
            urlConnection.setDoOutput(true);
            urlConnection.setDoInput(true);

        } catch (IOException e) {
            e.printStackTrace();
        }

        return "";
    }
}
